import { axios } from '@/utils/request'

export const uploadApi = {
  img: process.env.VUE_APP_API_BASE_URL + '/system/dfs/image_upload',
  customImg: '/system/dfs/image_upload',
  apk: process.env.VUE_APP_API_BASE_URL + '/system/dfs/upload',
  merchant: '/admin/registerSaasMerchant/merchantQualUpload'
}

/**
 * 自定义上传
 */
export function customUpload(uploadUrl, data) {
  return axios({
    url: uploadUrl,
    method: 'post',
    timeout: 30000,
    data
  })
}